<!-- Copyright (C) Zeyosoft. All rights reserved. -->
<meta charset="UTF-8">
<html>
<head>
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
	<title>AdvKit</title>
	<script src="js\ajax.js"></script>
	<script src="js\storage.js"></script>
	<script src="js\string.js"></script>
	<script src="js\dialogue.js"></script>
	<script src="js\BASIC.js"></script>
	<script src="js/desktop_UI.js"></script>
    <link href="css\style.css" rel="stylesheet" type="text/css"></link> 
</head>
<body>
<div id="main" class="area-main" onclick="hideHolders();adv_GengXin()"><!--文本显示区-->
	<div class="area-text">
		<div id="cName" class="plain-characterName"></div><!--台上角色名-->
		<div id="Dlg" class="plain-dialogue"></div><!--台词-->
	</div>
</div>
<!--button id="nextDialogue"  class="button-nextDialogue">↓</button-->
<div id="ctrlBar">
	<button id="save" class="button-default button-ctrl" onclick="alert('alpha测试不支持本功能！')" title="保存">SAVE</button>
	<button id="load" class="button-default button-ctrl" onclick="alert('alpha测试不支持本功能！')" title="读取">LOAD</button>
	<button id="autoExecute" onclick="adv_ZiDong()" class="button-default button-ctrl" title="自动剧情">自动 关</button>

</div>
</div>
<div id="cStart">
	<!--改名-->
	<div id="name" class="userbar">
		<!-- <span id="uname" class="plain-uname"></span> -->
		<button id="reName" onclick='adv_GaiMing()//jqxx_TiaoZhuan("init.html")' class="button-default button-rename">改名</button>
</div> </div>

<div id="man" style="display: none;">
	<div class="sidebar">
		<div id="siderbar-header" class="fileBar-inner"  onclick="i0()">
			<div class="sidebarNavButton"><svg width="30" height="30" viewBox="0 0 6.614583 6.614583" xmlns="http://www.w3.org/2000/svg" id="svg4">
  <g id="layer1">
    <circle
       style="fill:none;stroke:#ffffff;stroke-width:0.34523;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
       cx="3.3072915"
       cy="3.3072917"
       r="2.8700933" />
    <path
       style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
       style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
       d="m 5.0535414,3.1220832 10e-8,0.3704166 H 2.2754166 l 1.1906249,1.190625 H 2.9633332 L 1.5874999,3.3072917 2.9633332,1.9314582 h 0.5027083 l -1.1906249,1.190625" />
  </g>
</svg></div>
		</div>
		<ul id="siderbar-content">
			<li class="fileBar-inner" style="background-color: #3e6db5;">开始</li>
			<li class="fileBar-inner" onclick="alert('alpha测试不支持本功能！')">载入</li>
			<hr>
			<li class="fileBar-inner" onclick="alert('alpha测试不支持本功能！')">保存</li>
			<li class="fileBar-inner" onclick="alert('alpha测试不支持本功能！')">另存为</li>
			<li class="fileBar-inner" onclick="alert('alpha测试不支持本功能！')">历史记录</li>
			<li class="fileBar-inner" onclick="window.close()">关闭</li>
		</ul>
		<ul id="siderbar-footer">
			<hr>
			<li class="fileBar-inner">用户</li>
			<a class="fileBar-inner" href="https://gitee.com/johnleedev/adv-kit/issues" target="_blank">feedback</a>
			<li class="fileBar-inner">选项</li>
		</ul>
	</div>
	<span id="centerColumn">
	<div id="mainFile" style="width: 100%;">
		<div id="greeting">下午好</div>
	</div>
	</span>
</div>
<div id="titlebar" style="position: absolute;top: 0;height: 30px;width: 100%;"><!--以下标题栏-->
	<span class="window-appicon" id="appIcon" style="-webkit-app-region: drag;"></span>
	<span id="title" class="window-title" style="max-width: calc(100vw - 296px); position: absolute; left: 50%; transform: translate(-50%, 0px);">AdvKit</span>
	<div class="menubar" id="menubar" role="menubar" style="height: 30px;"><!--菜单栏-->
		<div class="menubar-menu-button" role="menuitem" tabindex="-1" aria-label="文件" aria-haspopup="true" aria-keyshortcuts="Alt+f" style="visibility: visible;" onclick='i0()'>
			<div class="menubar-menu-title" role="none" aria-hidden="true">文件(<mnemonic aria-hidden="true">F</mnemonic>)</div>
			
		</div>
		<div class="menubar-menu-button" role="menuitem" tabindex="-1" aria-label="查看" aria-haspopup="true" aria-keyshortcuts="Alt+v" style="visibility: visible;" onclick='i1()'>
			<div class="menubar-menu-title" role="none" aria-hidden="true">查看(<mnemonic aria-hidden="true">V</mnemonic>)</div>
		</div>
	</div>
	<span id="uname" class="plain-uname" onclick="adv_GaiMing()"></span><!--用户名-->
	<div class="window-controls-container">
		<a class="window-icon" id="bangzhu" href="https://gitee.com/johnleedev/adv-kit/issues" target="_blank">?</a><!--帮助-->
		<div class="window-icon window-minimize">
			<svg width="16" height="16" viewBox="0 0 4.2333332 4.2333335" xmlns="http://www.w3.org/2000/svg" class="svg-icon">
				<g>
				 <g>
				  <rect class="minim" stroke-width="2.64583" stroke-opacity="0.8" y="2.116667" x="0.55" height="0.264583" width="3"/>
				 </g>
				</g>
			   </svg>
		</div>
		<div id="maximizeWindow" class="window-icon window-max-restore" onclick="ui_fullScreen()">
			<svg width="16" height="16" viewBox="0 0 4.2333332 4.2333335" xmlns="http://www.w3.org/2000/svg" class="svg-icon" id="svg5">
				<g>
				 <g>
				  <rect style="fill:none;stroke-width:0.264606;stroke-miterlimit:4;stroke-dasharray:none;" class="rect99" width="2.381227" height="2.381227" x="0.92605293" y="0.92605293" />
				 </g>
				</g>
			</svg>
			<svg width="16" height="16" viewBox="0 0 4.2333332 4.2333335" xmlns="http://www.w3.org/2000/svg" class="svg-icon" id="svg6" style="display: none;">
				<g>
				 <g>
				   <rect
       style="fill:none;stroke-width:0.258132;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
       class="rect99"
       width="1.8585345"
       height="1.8585346"
       x="0.92281604"
       y="1.4519827" />
    <path
       style="fill:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
       d="M 1.4552083,1.3229167 V 0.92604167 H 3.3072917 V 2.778125 H 2.9104166 v 0.1322916"
       class="path935"
       sodipodi:nodetypes="cccccc" />
				 </g>
				</g>
			</svg>
		</div>
		<div id="closeWindow" class="window-icon window-close" onclick="window.close()">
			<svg width="16" height="16" viewBox="0 0 4.2333332 4.2333335" xmlns="http://www.w3.org/2000/svg" class="svg-icon" id="closeIcon">
				<g>
				 <g>
				  <path class="path1322" d="M 0.9525,0.76729167 0.76729167,0.93927084 1.9446875,2.1166667 0.76729167,3.2940625 0.95250001,3.4660417 2.1166666,2.2886458 3.2940626,3.4660417 3.4660417,3.2940625 2.2886458,2.1166666 3.4660417,0.93927084 3.2940626,0.76729167 2.1166667,1.9446875 Z"/>
				 </g>
				</g>
			   </svg>
		</div>
	</div>
</div><!--以上标题栏-->
<ul id="itemsHolder1" class="menubar-menu-items-holder float" style="position: absolute;top:30px;left:95px;list-style: none;margin: 0px;visibility: hidden;" role="presentation"></ul>
<script src="js\index.js"></script>
<script>
	function hideHolders(){
	var x = document.getElementsByClassName("float");
    var i;
    for (i = 0; i < x.length; i++) {
        x[i].style.visibility = "hidden";
    }
	}
</script>
<script>
	var ipc = require('electron').ipcRenderer;
	document.getElementById('closeWindow').addEventListener('click',() => {
		ipc.send('window-close');
	})
</script>

</body>
</html>